package com.qf.service.impl;

import com.qf.mapper.BookclassMapper;
import com.qf.pojo.Bookclass;
import com.qf.service.BookclassService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class BookclassServiceImpl implements BookclassService {
    @Resource
    BookclassMapper bookclassMapper;
    @Override
    public List<Bookclass> findAll() {
        return bookclassMapper.findAll();
    }

    @Override
    public int add(Bookclass bookclass) {
        return bookclassMapper.add(bookclass);
    }

    @Override
    public int update(Bookclass bookclass) {
        return bookclassMapper.update(bookclass);
    }

    @Override
    public int delete(int bcid) {
        return bookclassMapper.delete(bcid);
    }

    @Override
    public Bookclass findBookclassByBcid(int bcid) {
        return bookclassMapper.findBookclassByBcid(bcid);
    }
}
